home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Japanese Font Menu
- Sent: 8/19/96 11:30 AM
- Received: 8/19/96 11:41 AM
- From: Mary Boetcher, boetche1@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >I tried to make 'Font'('Typeface') menu.
- >Below is a way that you taught me.
- >
- >But when fontname is Japanese, it does not work well.
- >Displaied menu chars are changed to English Script.
- >
- >Tell me how to make Japanese 'Font' menu.
- >
- >
- >Best Regards.
- >
- >void AddFontsToMenu(Environment* ev, FW_CPullDownMenu* menu)
- >{
- > short count = 0;
- > FW_CFontIterator fontIter;
- > FW_CString fontName;
- > ODCommandID commandID = cFirstFontCommand;
- > for (fontName = fontIter.First(); fontIter.IsNotComplete();
- >fontName = fontIter.Next())
- > {
- > menu->AppendTextItem(ev, fontName, commandID+count);
- > count++;
- > }
- > gFontCount = count;
- >}
-
- I don't know why this code doesn't work. The fontName passed to
- AppendTextItem should have its locale.fScriptCode = smJapanese.
- Eventually fontName is passed to FW_CTextItem::PrivInitTextItem. On a
- Japanese System does a Japanese menu item need to have a script code in
- the item icon field?
-
- Mary Boetcher
- ODF Person
-